<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/react@18/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
</head>
<body>
    <div id="test"></div>
    <script type="text/babel">
        class Person extends React.Component{
            render() {
                console.log(this)
                return (
                    <ul>
                        <li>姓名:{this.props.name}</li>
                        <li>性别:女</li>
                        <li>年龄:17</li>
                    </ul>
                )
            }
        }
        ReactDOM.render(<Person name="tom"/>,document.getElementById('test'))
    </script>
</body>
</html>